<template>
    <div>
        <el-menu
                style="width: 200px;min-height: calc(95vh - 10px)"
                router
                class="el-menu-vertical-demo"
                >
            <el-menu-item index="customMenu">
                    <el-icon><location /></el-icon>
                    <span>浏览商品</span>
            </el-menu-item>
            <el-menu-item index="cart">
                <el-icon><icon-menu /></el-icon>
                <span>购物车/已购</span>
            </el-menu-item>
        </el-menu>
    </div>
</template>

<script>
    export default {
        name: "CustomAside",
        data() {
            return {
                user: {}
            }
        },
        created() {
            let userStr = sessionStorage.getItem("user") || "{}"
            this.user = JSON.parse(userStr)

            // 请求服务端，确认当前登录用户的 合法信息
            // request.get("/user/" + this.user.id).then(res => {
            //   if (res.code === '0') {
            //     this.user = res.data
            //   }
            // })
        }
    }
</script>

<style scoped>

</style>